﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QiHe
{
    public partial class Change_State : Form
    {
        string Flag;
        public Change_State(string TaskFlag)
        {
            InitializeComponent();
            Flag = TaskFlag;
            comboBox1.Text = "收到任务";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text.Length < 1)
                comboBox1.Text = "无";

            MedEQ.Service1 sop = new MedEQ.Service1();
           

            MedEQ.MySoapHeader Header = new MedEQ.MySoapHeader();//web引用创建soap头对象(改成您自己的)
            //设置soap头变量
            Header.UserName = "lee";
            Header.PassWord = "cmu4hlee1008";
            sop.MySoapHeaderValue = Header;


            sop.Change_Task_State( Flag,comboBox1.Text.ToString());

            this.Close();




        }
    }
}
